package com.example.service.impl;

import com.example.entity.Petstype;
import com.example.mapper.PetstypeMapper;
import com.example.service.IPetstypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dengc
 * @since 2023-05-10
 */
@Service
public class PetstypeServiceImpl extends ServiceImpl<PetstypeMapper, Petstype> implements IPetstypeService {

    @Resource
    private PetstypeMapper petstypeMapper;

    @Override
    public List<Petstype> getTypeCount() {
        return petstypeMapper.getTypeCount();
    }
}
